package com.wt.test.ai.springai.service.impl;

import com.wt.test.ai.springai.manager.ChatManager;
import com.wt.test.ai.springai.service.ChatService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * 聊天服务实现类
 *
 * @author qiyu
 * @since 2025/1/25
 */
@Service
@RequiredArgsConstructor
@Slf4j
public class ChatServiceImpl implements ChatService {
    
    private final ChatManager chatManager;
    
    
    /**
     * 聊天接口
     *
     * @param chatId    聊天ID
     * @param userInput 用户输入
     * @param voice     语言风格
     * @return 聊天结果
     */
    @Override
    public String conversation(String chatId, String userInput, String voice) {
        return chatManager.conversation(chatId, userInput, voice);
    }
}
